448a67c4a95218d3f948dd218dab2710c64aced4,addon/src/test/java/com/byteowls/vaadin/chartjs/ChartJsTest.java,ChartJsTest,testConfigGeneral,#,21
Before Change
.gridLines()
.offsetGridLines(false)
.done()
.done()
.logarithmic(Axis.Y)
.position(BaseScale.Position.LEFT)
.done()
.done()
After Change
config
.data()
.labels("A", "B", "C")
.addDataset(new LineDataset().fill(true).label("Dataset 1").data(1D, 2D, 3D))
.addDataset(new LineDataset().label("Set 2").data(3.3, 1.3, 2.9))
.and()
.options()
.events("test", "test1")
.showLines(true)
.responsive(true)
.hover()
.mode(HoverOptions.Mode.SINGLE)
.and()
.title()
.display(true)
.position(TitleOptions.Position.TOP)
.text("Hello World")
.and()
.animation()
.easing(AnimationOptions.Easing.easeOutQuart)
.and()
.tooltips()
.mode(TooltipsOptions.Mode.LABEL)
.and()
// scales must be the last configured, which is not really great
.scales()
.linear(Axis.X)
.position(BaseScale.Position.TOP)